/**
 * 
 */
package cn.biplam.front.page.mainpage;

import cn.biplam.common.wrapper.ErrorMessage;
import cn.biplam.common.wrapper.UserInfo;
import cn.biplam.front.component.data.common.CaptionComp;
import cn.biplam.front.html.base.HtmlWindow;
import cn.biplam.front.html.base.Const.Window_Event;
import cn.biplam.front.template.base.ButtonImage;

/**
 * Banner的退出按钮
 */
public class ExitButton {


	public static HtmlWindow get(UserInfo mUser,String home) throws ErrorMessage{
		HtmlWindow button=new ButtonImage(
				"button_exit",
				home+"/images/exit.gif"
		).get();
		button.setTitle(CaptionComp.get(mUser, "192"));

		button.bind(Window_Event.OnClick, "window.location='"+home+"/LoginDo.bi?act=exit';");
		return button;
	}

}
